<?php


namespace app\btApi\controller;
use app\common\service\PremiseService;
use app\common\utils\ResponseUtils;
use hg\apidoc\annotation as Apidoc;
/**
 * @Apidoc\Title("权限相关")
 */
class Premise
{
    private $premiseService;
    public function __construct()
    {
        $this->premiseService=new PremiseService();
    }
    /**
     * @Apidoc\Title("权限接口")
     * @Apidoc\Desc("这里是一个描述")
     * @Apidoc\Url("btApi/premise/list")
     * @Apidoc\Method("POST")
     * @Apidoc\Tag("权限列表")
     */
    public function list(){
        $list=$this->premiseService->list();
        return ResponseUtils::retSuccessWithData($list);
    }
}